﻿<%@ Page Title="Column mapping" Language="C#" MasterPageFile="~/OutlookMaster.master" AutoEventWireup="true"
    CodeFile="ColumnMapping.aspx.cs" Inherits="Pages_ColumnMapping" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPage" runat="Server">
    <asp:Panel ID="panReference" runat="server">
        <table id="tblMappings" runat="server" border="0" cellspacing="0" rules="rows">
            <tr>
                <td valign="middle" rowspan="2">
                    Table
                </td>
                <td>
                </td>
                <td>
                    Table Name
                </td>
                <td bgcolor="#CCCCCC">
                    Reference column
                </td>
                <td colspan="5">
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:DropDownList ID="ddlTable" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlTable_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td bgcolor="#CCCCCC">
                    <asp:DropDownList ID="ddlColumn" runat="server">
                    </asp:DropDownList>
                </td>
                <td colspan="5">
                </td>
            </tr>
            <tr>
                <td valign="middle" rowspan="2">
                    Reference
                </td>
                <td>
                    Type
                </td>
                <td>
                    Object
                </td>
                <td bgcolor="#CCCCCC">
                    Referenced column
                </td>
                <td>
                    Display column
                </td>
                <td>
                    Order column
                </td>
                <td>
                    ASC/DESC
                </td>
            </tr>
            <tr>
                <td>
                    <asp:DropDownList ID="ddlReferenceType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlReferenceType_SelectedIndexChanged">
                        <asp:ListItem Selected="True">All</asp:ListItem>
                        <asp:ListItem>Tables</asp:ListItem>
                        <asp:ListItem>Views</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlReferenceObject" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlReferenceObject_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td bgcolor="#CCCCCC">
                    <asp:DropDownList ID="ddlReferenceIdColumn" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlReferenceDisplayColumn" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlOrderBy" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlDirection" runat="server">
                        <asp:ListItem>ASC</asp:ListItem>
                        <asp:ListItem>DESC</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td>
                    <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
                </td>
                <td>
                    <asp:Button ID="btnDelete" runat="server" Text="Delete" 
                        onclick="btnDelete_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
